package com.example.Windturbine.Service;

import com.example.Windturbine.DataObject.ManufactureDO;
import com.example.Windturbine.DataObject.MaterialDO;
import com.example.Windturbine.Error.BusinessException;
import com.example.Windturbine.Service.Model.ManufactureModel;
import com.example.Windturbine.Service.Model.MaterialModel;

import java.util.List;

/**
 * @Author 丁永新
 * @Date 2021/12/20
 */
public interface ManufactureService {

    //获取全部的工艺信息
    List<ManufactureDO> getAll(Integer level) throws BusinessException;

    //添加一条工艺信息
    void submitSingle(ManufactureModel manufactureModel) throws BusinessException;

    //获取一条工艺的详细信息
    ManufactureModel getDetailById(Integer id) throws BusinessException;

    //删除一条工艺信息
    void deleteById(Integer id) throws BusinessException;

    ManufactureModel getDetailByName(String tran_name, String material_name,Integer level) throws BusinessException;
}
